
#include <algorithm>
#include <cassert>
#include <iostream>
#include <vector>
using namespace std;

int main() {

  std::vector<int> c{0, 1, 2, 3, 4, 5, 6, 7, 8, 9};

  c.erase(remove_if(c.begin(), c.end(), [](int &i) { return i % 2 == 0; }),
          c.end());

  for (auto &i : c)
    cout << i << " ";
  cout << endl;

  cout << c.size() << "  " << c.capacity() << endl;

  c.erase(c.begin() + 7, c.end());

  cout << c.size() << "  " << c.capacity() << endl;

  cout << c[9] << endl;

  cout << 10 % 6 % 2 << endl;
  return 0;
}